﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace FinalItem.Migrations.MyEartags
{
    /// <inheritdoc />
    public partial class addMyEartags : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "SerialNumber",
                table: "Gestation");

            migrationBuilder.DropColumn(
                name: "SerialNumber",
                table: "Earoverbit");

            migrationBuilder.DropColumn(
                name: "SerialNumber",
                table: "Delivery");

            migrationBuilder.DropColumn(
                name: "SerialNumber",
                table: "Allocation");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "SerialNumber",
                table: "Gestation",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SerialNumber",
                table: "Earoverbit",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SerialNumber",
                table: "Delivery",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<int>(
                name: "SerialNumber",
                table: "Allocation",
                type: "int",
                nullable: false,
                defaultValue: 0);
        }
    }
}
